Skip to content

fix support set nettyMaxFrameSizeBytes on bookeeper config - #7116

Merged
codelipenghui merged 4 commits into
apache:masterfrom
liudezhi2098:fix_set_nettyMaxFrameSizeBytes_config
Jun 4, 2020
Merged

fix support set nettyMaxFrameSizeBytes on bookeeper config#7116
codelipenghui merged 4 commits into
apache:masterfrom
liudezhi2098:fix_set_nettyMaxFrameSizeBytes_config

Conversation

@liudezhi2098

Copy link
Copy Markdown
Contributor

Master Issue: #7115

Motivation

fix by default config , when the content of the sent message is 5M, it will appear that the current topic can no longer send the message.

Modifications

bookkeeper.con f

# The maximum netty frame size in bytes. Any message received larger than this will be rejeted. Default value is 1G.
nettyMaxFrameSizeBytes=1073741824

The default setting is 1G size, I think it should be larger than the broker's

@codelipenghui

Copy link
Copy Markdown
Contributor

/pulsarbot run-failure-checks

Comment thread conf/bookkeeper.conf Outdated
# The Recv ByteBuf allocator max buf size.
# byteBufAllocatorSizeMax=1048576

# The maximum netty frame size in bytes. Any message received larger than this will be rejeted. Default value is 1G.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# The maximum netty frame size in bytes. Any message received larger than this will be rejeted. Default value is 1G.
# The maximum netty frame size in bytes. Any message received larger than this will be rejected. The default value is 1G.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@liudezhi2098 It's better to use 5MB as the default value, in order to avoid the change of the default value to break the use of some scenes.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use 5MB as the default value , will cause problems,can be changed to 5253120(
5242880 + Commands.MESSAGE_SIZE_FRAME_PADDING)

@sijie

sijie commented Jun 1, 2020

Copy link
Copy Markdown
Member

/pulsarbot run-failure-checks

@codelipenghui

Copy link
Copy Markdown
Contributor

/pulsarbot run-failure-checks

@codelipenghui
codelipenghui merged commit d009c11 into apache:master Jun 4, 2020
huangdx0726 pushed a commit to huangdx0726/pulsar that referenced this pull request Aug 24, 2020
Master Issue: apache#7115
## Motivation

fix by default config , when the content of the sent message is 5M, it will appear that the current topic can no longer send the message.

## Modifications
bookkeeper.con f
```java
# The maximum netty frame size in bytes. Any message received larger than this will be rejeted. Default value is 1G.
nettyMaxFrameSizeBytes=1073741824
```

The default setting is 1G size, I think it should be larger than the broker's
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

When the content of the sent message is 5M, it will appear that the current Topic can no longer send the message

4 participants